/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.asset.service;

import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;
import top.continew.admin.asset.model.resp.ServiceImportParseResp;
import top.continew.starter.extension.crud.service.BaseService;
import top.continew.admin.asset.model.query.ServiceRecordsQuery;
import top.continew.admin.asset.model.req.ServiceRecordsReq;
import top.continew.admin.asset.model.resp.ServiceRecordsDetailResp;
import top.continew.admin.asset.model.resp.ServiceRecordsResp;

import java.io.IOException;

/**
 * 服务业务接口
 *
 * @author CharlieYan
 * @since 2025/06/25 17:35
 */
public interface ServiceRecordsService extends BaseService<ServiceRecordsResp, ServiceRecordsDetailResp, ServiceRecordsQuery, ServiceRecordsReq> {

    /**
     * 下载导入模板
     *
     * @param response 响应对象
     * @throws IOException /
     */
    void downloadImportTemplate(HttpServletResponse response) throws IOException;

    /**
     * 解析导入数据
     *
     * @param file 导入文件
     * @return 解析结果
     */
    ServiceImportParseResp parseImport(MultipartFile file);

}